package com.cssy.xxkj.basic.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.cssy.xxkj.basic.entity.BasicClerkDO;

/**
 * 数据访问对象接口
 * @since 2014-09-10
 */
public interface BasicClerkDAO extends BasicBizDAO<BasicClerkDO>{

    /**
     * 插入数据
     * @param basicClerkDO
     * @return 插入数据的主键
     */
    public String insertBasicClerkDO(BasicClerkDO basicClerkDO);

    /**
     * 统计记录数
     * @param basicClerkDO
     * @return 查出的记录数
     */
    public Integer countBasicClerkDOByExample(BasicClerkDO basicClerkDO);
    
    /**
     * 更新记录
     * @param basicCompanyTestDO
     * @return 受影响的行数
     */
    public Integer updateBasicClerkDO(BasicClerkDO basicClerkDO) throws DataAccessException;

    /**
     * 获取对象列表
     * @param basicClerkDO
     * @return 对象列表
     */
    public List<BasicClerkDO> findListByExample(BasicClerkDO basicClerkDO);
    
    /**
     * 根据主键获取BasicClerkDO
     * @param id
     * @return BasicClerkDO
     */
    public BasicClerkDO findBasicClerkDOByPrimaryKey(String id) throws DataAccessException;
    
    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteBasicClerkDOByPrimaryKey(String id) throws DataAccessException;


}